package PayrollCalculation;

//销售以销售额的5%计算奖金
public class Salesperson extends Employee{
    private static final double BONUS_RATE = 0.05;

    public Salesperson(String name, double baseSalary, double salesAmount) {
        super(name, baseSalary, salesAmount);
    }

    @Override
    public double calculateSalary() {
        return baseSalary + performance * BONUS_RATE;
    }
}
